package com.config;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author arthorn
 * @create 2022-05-04-23:04
 */
@Configuration
public class InterceptionConfig implements WebMvcConfigurer {
    // 添加视图控制
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
    }

    public void addInterceptors(InterceptorRegistry registry) {        // 注册拦截器
       }
}

